<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>06.行盒的截断样式</title>
  <style>
    .container {
      width: 400px;
      border: 1px solid #ccc;
      padding: 10px;
    }
    .highlight {
      background: linear-gradient(#d5e8b7, #bad6b3);
      border: 2px solid #7e876b;
      padding: 0 0.5em;
      border-radius: 5px;
      /* 用于处理行盒的截断样式，默认 slice*/
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }
  </style>
</head>
<body>
  <div class="container">
   A man want to do sthing, but he unknow sthing need to do. <span class="highlight">aaa bcesef xzerfce sssveta cscthannnatced
    aiefefafeafcc  aaaaefef ccccfwjfeoh aefaf  accoppnpp, wefewfvv</span>
  </div>
</body>
</html>